package com.jiazhong.basic.pack0309;


import java.util.ArrayList;
import java.util.Arrays;

public class DemoB {


    private static void a() {
        ArrayList<String> list = new ArrayList<>();
        list.add("aa");
        list.add("bb");
        list.add("cc");
        list.add("dd");
        list.add("ee");
        String s = list.get(1);
        list.add(1, "kk");
        list.remove(3);
    }

    public static void main(String[] args) {
        int[] array1 = {1, 2, 3, 4, 5, 6};
        int[] array2 = new int[10];
        System.arraycopy(array1, 0, array2, 2, 3);
        System.out.println(Arrays.toString(array1));
        System.out.println(Arrays.toString(array2));
    }
}
